Optimal. Leaf size=148 \[ \frac{(g x)^{m+1} (d+e x)^n \left (\frac{e x}{d}+1\right )^{-n} F_1\left (m+1;-n,1;m+2;-\frac{e x}{d},-\frac{\sqrt{c} x}{\sqrt{-a}}\right )}{2 a g (m+1)}+\frac{(g x)^{m+1} (d+e x)^n \left (\frac{e x}{d}+1\right )^{-n} F_1\left (m+1;-n,1;m+2;-\frac{e x}{d},\frac{\sqrt{c} x}{\sqrt{-a}}\right )}{2 a g (m+1)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.176814, antiderivative size = 148, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 3, integrand size = 22, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.136, Rules used = {912, 135, 133} \[ \frac{(g x)^{m+1} (d+e x)^n \left (\frac{e x}{d}+1\right )^{-n} F_1\left (m+1;-n,1;m+2;-\frac{e x}{d},-\frac{\sqrt{c} x}{\sqrt{-a}}\right )}{2 a g (m+1)}+\frac{(g x)^{m+1} (d+e x)^n \left (\frac{e x}{d}+1\right )^{-n} F_1\left (m+1;-n,1;m+2;-\frac{e x}{d},\frac{\sqrt{c} x}{\sqrt{-a}}\right )}{2 a g (m+1)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 912
Rule 135
Rule 133
Rubi steps
\begin{align*} \int \frac{(g x)^m (d+e x)^n}{a+c x^2} \, dx &=\int \left (\frac{\sqrt{-a} (g x)^m (d+e x)^n}{2 a \left (\sqrt{-a}-\sqrt{c} x\right )}+\frac{\sqrt{-a} (g x)^m (d+e x)^n}{2 a \left (\sqrt{-a}+\sqrt{c} x\right )}\right ) \, dx\\ &=-\frac{\int \frac{(g x)^m (d+e x)^n}{\sqrt{-a}-\sqrt{c} x} \, dx}{2 \sqrt{-a}}-\frac{\int \frac{(g x)^m (d+e x)^n}{\sqrt{-a}+\sqrt{c} x} \, dx}{2 \sqrt{-a}}\\ &=-\frac{\left ((d+e x)^n \left (1+\frac{e x}{d}\right )^{-n}\right ) \int \frac{(g x)^m \left (1+\frac{e x}{d}\right )^n}{\sqrt{-a}-\sqrt{c} x} \, dx}{2 \sqrt{-a}}-\frac{\left ((d+e x)^n \left (1+\frac{e x}{d}\right )^{-n}\right ) \int \frac{(g x)^m \left (1+\frac{e x}{d}\right )^n}{\sqrt{-a}+\sqrt{c} x} \, dx}{2 \sqrt{-a}}\\ &=\frac{(g x)^{1+m} (d+e x)^n \left (1+\frac{e x}{d}\right )^{-n} F_1\left (1+m;-n,1;2+m;-\frac{e x}{d},-\frac{\sqrt{c} x}{\sqrt{-a}}\right )}{2 a g (1+m)}+\frac{(g x)^{1+m} (d+e x)^n \left (1+\frac{e x}{d}\right )^{-n} F_1\left (1+m;-n,1;2+m;-\frac{e x}{d},\frac{\sqrt{c} x}{\sqrt{-a}}\right )}{2 a g (1+m)}\\ \end{align*}
Mathematica [F] time = 0.116095, size = 0, normalized size = 0. \[ \int \frac{(g x)^m (d+e x)^n}{a+c x^2} \, dx \]
Verification is Not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.752, size = 0, normalized size = 0. \begin{align*} \int{\frac{ \left ( gx \right ) ^{m} \left ( ex+d \right ) ^{n}}{c{x}^{2}+a}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (e x + d\right )}^{n} \left (g x\right )^{m}}{c x^{2} + a}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{{\left (e x + d\right )}^{n} \left (g x\right )^{m}}{c x^{2} + a}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (e x + d\right )}^{n} \left (g x\right )^{m}}{c x^{2} + a}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]